package com.adopt.service;

import com.adopt.pojo.Admin;
import com.adopt.pojo.Answer;

import java.util.List;

/**
 * ClassName:AnswerService
 * Package:com.adopt.service
 * Description:
 *
 * @Date:2023/9/11 16:13
 * Author:shifan
 */
public interface AnswerService {
    /**
     * 根据管理员id查询信息
     * @param id  管理员id
     * @return Admin
     * */
    Answer findById(Integer id);

    /**
     * 更具id查询用户的信息
     * @param id 回复的id
     * @return answer
     * */
    List<Answer> findByCommentId(Integer id);

    int addAnswer(Answer answer);

    int addAnswers(Answer answer);
}
